/*
 * @Author: hejianbo
 * @Date: 2023-01-12 16:15:20
 * @LastEditors: hejianbo
 * @FilePath: /src/config/baseUrl.js
 * @Description: 获取接口域名
 */

export function getBaseUrl() {
  if (BUILD_MODE === 'production' ) return 'https://apiv2.medmeeting.com'
  if (BUILD_MODE === 'beta' ) return 'https://apibeta.medmeeting.com'
  return 'https://apitestv2.medmeeting.com'
}

export function getPreviewDomains() {
  if (BUILD_MODE === 'production' ) return 'http://mobile.medmeeting.com/?#/new/preview/article/'
  if (BUILD_MODE === 'beta' ) return 'http://mobilebeta.medmeeting.com/?#/new/preview/article/'
  return 'http://mobiletest.medmeeting.com/?#/new/preview/article/'
}
